package com.easydisk.file.model.req;

import lombok.Data;
import lombok.Getter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UploadFileReq implements Serializable {


    @NotBlank(message = "文件名称不能为空")
    private String filename;

    @NotBlank(message = "文件对应的唯一标识不能为空")
    private String identifier;

    @NotNull(message = "文件大小不能为空")
    private Long totalSize;

    @NotNull(message = "父id不能为空")
    private Long parentId;

    @NotNull(message = "上传文件不能为空")
    private MultipartFile file;

}
